//请求轮播图

import request from "@/utils/request";
//轮播图api
export const swiperApi = (token) =>
  request({
    url: "/swiper",
    method: "get",
    params: {
      token: token,
    },
  });
//活动api
export const activitysApi = (token) =>
  request({
    url: "/activitys",
    method: "get",
    params: {
      token: token,
    },
  });
//秒杀api
export const miaoshaApi = (token) =>
  request({
    url: "/seconds",
    method: "get",
    params: {
      token: token,
    },
  });
//商品列表
export const goodsApi = (token) =>
  request({
    url: "/goods",
    method: "get",
    params: {
      token: token,
    },
  });
//请求商品详情接口
export const goodxqApi = (obj) =>
  request({
    url: "/goodsDetail",
    method: "get",
    params: obj,
  });
